package io.renren.service;

import io.renren.common.entity.XlsUserEntity;
import io.renren.common.service.CrudService;
import io.renren.dto.LoginDTO;
import io.renren.dto.XlsUserDTO;
import io.renren.utils.AppResult;

import java.util.Map;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-03-28
 */
public interface XlsUserService extends CrudService<XlsUserEntity, XlsUserDTO> {
    XlsUserEntity getByMobile(String mobile);

    XlsUserEntity getUserByUsername(String username);

    XlsUserEntity getUserByUserId(Long userId);

    Map<String, Object> login(LoginDTO dto);

    void insertUser(XlsUserEntity user);

    void registerUsers(XlsUserEntity user);

    void insertOrUpdateXlsCirclePri(XlsUserEntity xlsUserEntity);

    AppResult myCenterData(Long userId);

    Map<String, Object> checkPayPassWorld(Long userId, String paypassword);

    AppResult qrCodeShare(Long userId);

    AppResult fans(Long userId);

    AppResult updatePassword(Long userid, String oldPassword, String newPassword, String types, String userPhone);

    AppResult updatePayPassword(Long userid, String oldPayPassword, String newPayPassword);

    AppResult setPayPassword(Long userid, String newPayPassword);

    AppResult promotePeople(Long userId);
}